﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebClient._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList1" runat="server" 
            onselectedindexchanged="DropDownStatus_SelectedIndexChanged">
            <asp:ListItem Selected="True">Online</asp:ListItem>
            <asp:ListItem>Away</asp:ListItem>
            <asp:ListItem>Busy</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        <asp:TextBox ID="txtPassword" runat="server"></asp:TextBox>
        <br />
    <asp:Button ID="cmdLogin" runat="server" OnClick="cmdLogin_Click" 
                    Text="Login" />
                <asp:Button ID="cmdLogout" runat="server" CausesValidation="False" 
                    OnClick="cmdLogout_Click" Text="Logout" />
                <br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:Timer ID="timInlog" runat="server" Interval="500" ontick="Timer1_Tick">
                </asp:Timer>
                <asp:Label ID="Label1" runat="server"></asp:Label>
                <br />
                <asp:ListBox ID="lbContact" runat="server" Height="156px" Width="549px" 
                    onselectedindexchanged="lbContact_SelectedIndexChanged">
                </asp:ListBox>
                <br />
                <br />
                <asp:ListBox ID="LbBerichten" runat="server" Width="543px" Height="216px"></asp:ListBox>  
                <script type="text/javascript">
                    elem = document.getElementById("lbBerichten");
                    elem.scrollTop = elem.scrollHeight;
                </script>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
                <asp:Panel ID="Panel1" runat="server" style="margin-top: 64px">
                    <asp:TextBox ID="TbBericht" runat="server"></asp:TextBox>
                    <asp:Button ID="btnVerzend" runat="server" onclick="btnVerzend_Click" 
                        Text="Button" />
                </asp:Panel>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
                <br />
    </div>

    </form>
</body>
</html>
